package homework.h03;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/10/6 20:34
 * @package homework.h03
 * @description 文件说明
 */

public abstract class Phone {
    /**
     * 打电话抽象方法
     */
    abstract void call();
}

interface Ebook {
    /**
     * 阅读抽象方法
     */
    public abstract void read();
}

class PadPhone extends Phone implements Ebook {
    private String brand;

    public PadPhone(String brand) {
        this.brand = brand;
    }


    @Override
    void call() {
        System.out.println(brand + "品牌的手机在打电话！");
    }

    @Override
    public void read() {
        System.out.println(brand + "品牌的电子书在阅读！");
    }

    public static void main(String[] args) {
        PadPhone huawei = new PadPhone("HUAWEI");
        huawei.call();
        huawei.read();
    }
}
